Tab Label

Hello,

I can't figure out how to get/read label of a tab (stb strip). Does anyone know how to read it.

Thanks
Jester
jester76 - Fri Mar 08 16:02:43 EST 2013

Re: Tab Label
Mathias Mamsch - Sat Mar 09 04:43:18 EST 2013

Normally, when you create a tab strip, then you have an array of strings, where you create it from. Just keep that array around, then you can from the tab nr. get the title of the tab strip. So there is no internal function to do so.

In situations where this is not possible (where you cannot modify the code, that creates the tab strip) you can hook the tab creation function, store the titles and introduce a function to return the title for you. We had a similar post for returning the title of a listview column. See here for a solution:

https://www.ibm.com/developerworks/forums/thread.jspa?messageID=14441306&#14441306

Regards, Mathias

Mathias Mamsch, IT-QBase GmbH, Consultant for Requirement Engineering and D00RS

Re: Tab Label
llandale - Sat Mar 09 13:52:10 EST 2013

Mathias Mamsch - Sat Mar 09 04:43:18 EST 2013
Normally, when you create a tab strip, then you have an array of strings, where you create it from. Just keep that array around, then you can from the tab nr. get the title of the tab strip. So there is no internal function to do so.

In situations where this is not possible (where you cannot modify the code, that creates the tab strip) you can hook the tab creation function, store the titles and introduce a function to return the title for you. We had a similar post for returning the title of a listview column. See here for a solution:

https://www.ibm.com/developerworks/forums/thread.jspa?messageID=14441306&#14441306

Regards, Mathias


Mathias Mamsch, IT-QBase GmbH, Consultant for Requirement Engineering and D00RS

.. where "keep around" means declare the string array in the top context. Sometimes that's not realistic, forcing a more complicated solution.

Re: Tab Label
jester76 - Mon Mar 11 11:23:59 EDT 2013

llandale - Sat Mar 09 13:52:10 EST 2013
.. where "keep around" means declare the string array in the top context. Sometimes that's not realistic, forcing a more complicated solution.

Thank you very much for your replies. I really appreciate it.

Thanks
Jester